<?php 
require_once("perficature-utils.php");
$ua = $_GET['ua'];
$uafix = $_GET['uafix'];
$uaresult = $_GET['uar'];
$pbrowser = parseUseragent($ua);
$ip = $_SERVER['REMOTE_ADDR'];

$body = "User-Agent: '$ua'\nua result: '$uaresult'\npbrowser: '$pbrowser'\nuafix: '$uafix'\nIP: $ip\n\nhttp://stevesouders.com/ua/confirm-ua.php\n";
mail("steve@souders.org", "UA fix: '$pbrowser' to '$uafix'", $body, "From: UA Profiler");
?>
